/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/http/request';
import type { AxiosRequestConfig } from 'axios';
import type { RequestOptions as RequestOptionsType } from '/#/axios';
type RequestOptions = RequestOptionsType & AxiosRequestConfig;

import * as API from './types';

/**
 * 获取用户信息
 *
 * @method GET
 * @url /getInfo
 * @param {object} options - 请求配置选项
 * @returns {Promise<API.AjaxResult>} 获取用户信息
 */
export async function getApiGetInfo({ options }: { options?: RequestOptions }) {
  return request<API.AjaxResult>('/getInfo', {
    method: 'GET',
    ...(options || {}),
  });
}
